home *** CD-ROM | disk | FTP | other *** search
- import java.awt.CardLayout;
- import java.awt.Container;
- import java.awt.Panel;
-
- class GraphicsCards extends Panel {
- public GraphicsCards() {
- ((Container)this).setLayout(new CardLayout());
- ((Container)this).add("Arc", new ArcCard());
- ((Container)this).add("Oval", new ShapeTest(new OvalShape()));
- ((Container)this).add("Polygon", new ShapeTest(new PolygonShape()));
- ((Container)this).add("Rect", new ShapeTest(new RectShape()));
- ((Container)this).add("RoundRect", new ShapeTest(new RoundRectShape()));
- }
- }
-